package com.tanhua.common.enums;

import com.baomidou.mybatisplus.core.enums.IEnum;
//todo 貌似没有用上
public enum FreezingRangeEnum implements IEnum<Integer> {
    //冻结范围，1为冻结登录，2为冻结发言，3为冻结发布动态
    FREEZING_LOGIN(1, "冻结登录"),
    FREEZING_COMMENT(2, "冻结发言"),
    FREEZING_PUBLISH(3, "冻结发布动态");

    private int value;
    private String desc;

    FreezingRangeEnum(int value, String desc) {
        this.value = value;
        this.desc = desc;
    }

    public String getDesc() {
        return this.desc;
    }

    @Override
    public Integer getValue() {
        return this.value;
    }

    @Override
    public String toString() {
        return this.desc;
    }
}